[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
This is a longshot, but would be great to have. Below I have at MWE1 the verbatim codefragment textbox I am using. I found in the forum MWE2 which is a textbox with an automatic reference number. Is there a way to get the same for MWE1 with automatic reference numbering like 1.1, 1.2 etc

[NTG-context] Re: Text runs out of Verbatim Frame

2023-09-08 Thread Wolfgang Schuster
Jeroen schrieb am 08.09.2023 um 13:09: I am using the following to print some verbatim text in a frame. At the right side, it keeps running out of the frame, is there a way to prevent this with the MWE? This verbatim frame always is textwidth, is there a way for a single frame just

[NTG-context] Text runs out of Verbatim Frame

2023-09-08 Thread Jeroen
I am using the following to print some verbatim text in a frame. At the right side, it keeps running out of the frame, is there a way to prevent this with the MWE? This verbatim frame always is textwidth, is there a way for a single frame just for if the situation asks for it to have it only have

[NTG-context] Re: # verbatim typesetting

2023-09-07 Thread Marcus Vinicius Mesquita
Dear Hans, Thank you for your detailed answer. I'll wait then the next upload. Kind regards Marcus Vinicius On Thu, Sep 7, 2023 at 2:36 PM Hans Hagen via ntg-context wrote: > > On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: > > Dear List, > > > > The MWE below gives a pdf with two #'s

[NTG-context] Re: # verbatim typesetting

2023-09-07 Thread Hans Hagen via ntg-context
On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: Dear List, The MWE below gives a pdf with two #'s instead of only one. Why is that? \starttext \startluacode context.type("#") \stopluacode \stoptext because by default tex loves to duplicate hashes when it serializes token lists

[NTG-context] # verbatim typesetting

2023-09-07 Thread Marcus Vinicius Mesquita
Dear List, The MWE below gives a pdf with two #'s instead of only one. Why is that? \starttext \startluacode context.type("#") \stopluacode \stoptext -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
of the \everyinitializeverbatim register because it is used for inline and display verbatim. A better place to add the option is \buff_verbatim_initialize_typing_two for \starttyping and \buff_verbatim_initialize_type_two for \type. ok

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster
Alex Leray schrieb am 17.08.2023 um 17:59: Hi, I think I need to use verbatim because I'm typesetting source code and I need it to be as verbatim as possible. For the moment, I'm manually inserting zero-width spaces... seems to do the trick, although it's becoming unreadable :P Which

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
Hi, I think I need to use verbatim because I'm typesetting source code and I need it to be as verbatim as possible. For the moment, I'm manually inserting zero-width spaces... seems to do the trick, although it's becoming unreadable :P Thanks, Alex Le 17/08/23 à 17:22, Wolfgang Schuster

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster
Alex Leray schrieb am 17.08.2023 um 14:41: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Do you need the verbatim environment or is the lines-environment sufficient. \setuppa

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
, Alex Leray wrote: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? For now do this:   \appendtoks \usesetupsparameter\typingparameter   \to \everyinitiali

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Hans Hagen
On 8/17/2023 2:41 PM, Alex Leray wrote: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? For now do this: \appendtoks \usesetupsparameter\typin

[NTG-context] breakpoints in verbatim text

2023-08-17 Thread Alex Leray
Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? Below is my test code. Thanks, Alex * * * \setuppapersize[A7] \setbreakpoints[compound] \starttext 1. This is

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote: > Many thanks. Is there a proper way to add some space (a couple of pt or em) > to the left and the right of the text itself so the frame does not get so > close to the text? \framed[loffset=0.2ex, roffset=0.2ex]{...} Also see:

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
chrieb am 19.05.2023 um 14:22: > > In order to get some inline framed verbatim text, I have in the past > > always used the following: > > > > \starttext > > > > This is an > > \inframed > > [frame=on, > > corner=00, > > radius=2mm,of

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22: In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed   [frame=on,   corner=00, radius=2mm,offset=-1.5pt]   {\ttx \bf example} \stoptext Since this has come-up

[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt] {\ttx \bf example} \stoptext Since this has come-up more and more often, I created the following: \define[1

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/4/23 07:49, Hugo Landau via ntg-context wrote: > On this page of the wiki there is an example for wrapping long words, > like long hexadecimal strings: > > https://wiki.contextgarden.net/Wrapping > > This example is buggy because it deletes one character at the point that > it is wrapped.

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-06 Thread Hans Hagen via ntg-context
On 2/5/2023 4:52 PM, Pablo Rodriguez via ntg-context wrote: On 2/5/23 13:13, Hans Hagen via ntg-context wrote: On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote: [...] Are we missing something or is this a bug? what do you expect as result? (maybe try \righthyphenmin=1) Line

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Pablo Rodriguez via ntg-context
On 2/5/23 13:13, Hans Hagen via ntg-context wrote: > On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Are we missing something or is this a bug? > what do you expect as result? (maybe try \righthyphenmin=1) Line breaks are removing characters. In the sample below, output

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Hans Hagen via ntg-context
On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote: On 2/4/23 10:37, Pablo Rodriguez via ntg-context wrote: On 2/4/23 07:49, Hugo Landau via ntg-context wrote: On this page of the wiki there is an example for wrapping long words, like long hexadecimal strings:

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Floris van Manen via ntg-context
On 05/02/2023 12:32, Pablo Rodriguez via ntg-context wrote: Are we missing something or is this a bug? If you add a \tt at the beginning, the lines have different length. not sure why, but there is a reason to it... \startTEXpage[offset=3em] \tt \setupalign[tolerant,stretch] \dorecurse

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Pablo Rodriguez via ntg-context
On 2/4/23 10:37, Pablo Rodriguez via ntg-context wrote: > On 2/4/23 07:49, Hugo Landau via ntg-context wrote: >> On this page of the wiki there is an example for wrapping long words, >> like long hexadecimal strings: >> >> https://wiki.contextgarden.net/Wrapping >> >> This example is buggy because

Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-04 Thread Pablo Rodriguez via ntg-context
On 2/4/23 07:49, Hugo Landau via ntg-context wrote: > On this page of the wiki there is an example for wrapping long words, > like long hexadecimal strings: > > https://wiki.contextgarden.net/Wrapping > > This example is buggy because it deletes one character at the point that > it is wrapped. >

[NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-03 Thread Hugo Landau via ntg-context
On this page of the wiki there is an example for wrapping long words, like long hexadecimal strings: https://wiki.contextgarden.net/Wrapping This example is buggy because it deletes one character at the point that it is wrapped. In the example given, running context turns '257a410' into

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-30 Thread Ulrike Fischer via ntg-context
Am Sat, 28 Jan 2023 03:01:24 +0100 schrieb Kalouguine Andre via ntg-context: > I'm trying to make a verbatim block of text with copiable leading spaces > so that students can just copy my Python code snippets into their IDE. This basically doesn't work (quite unrelated to the tex code). T

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-30 Thread Pablo Rodriguez via ntg-context
On 1/29/23 17:58, Kalouguine Andre via ntg-context wrote: > On 28.01.2023 22:54, Hans Hagen via ntg-context wrote: >> […] >> so: this is all very viewer dependent! (The suggested comment method >> is more reliable.) >   > Unfortunately as I just found out, comments are also viewer dependent... >

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-29 Thread Kalouguine Andre via ntg-context
Acrobat). Right you are, it works with > your method, thanks! > I think the students have Evince so perhaps it's the best solution in the > absence there are some provisions for spaces in text but for verbatim it is a bit more tricky \setuptyping[space=on] you now see visual spaces show up tha

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Hans Hagen via ntg-context
solution in the absence there are some provisions for spaces in text but for verbatim it is a bit more tricky \setuptyping[space=on] you now see visual spaces show up that can be copied now, say that we add real spaces, which you can do after and this (in cont-new.mkxl): \unprotect

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
ence of copiable spaces in verbatim mode. Thanks again! Best regards, Andre___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mail

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 14:31, Kalouguine Andre via ntg-context wrote: > Hi Pablo, Hi André, > [...]   > That's actually something I had never thought of, using PDF comments, > thanks!. When I faced a similar task, I thought it could be the way of solving the issue (how to copy and paste ConTeXt code and

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
Hi Pablo, > \showframe > \setupinteraction[state=start] > \starttext > \startbuffer[abc] > def foo(x): > if x == 0: > bar() > else: > baz(x) > foo(x - 1) > \stopbuffer > \comment[location=leftmargin, > space=yes, > buffer=abc, > title={Python code}] > {}\typebuffer[abc] > \stoptext > > This

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 03:01, Kalouguine Andre via ntg-context wrote: > Good day to everyone, > > I'm trying to make a verbatim block of text with copiable leading spaces > so that students can just copy my Python code snippets into their IDE. Hi André, I wonder whether I’m gettin

[NTG-context] Subject: Leading spaces verbatim

2023-01-27 Thread Kalouguine Andre via ntg-context
Good day to everyone, I'm trying to make a verbatim block of text with copiable leading spaces so that students can just copy my Python code snippets into their IDE. I believe the question has been asked before (though I confess I can't find the right search terms to find the answer again). I

Re: [NTG-context] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 31.07.2021 um 00:18: On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote: I am using the following preamble to put a frame around verbatim text. How can I have all the text start some 5pt from the frame and how can I get rounded corners, corner=0 does

Re: [NTG-context] Verbatim text in a frame

2021-07-30 Thread Hans Hagen via ntg-context
On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote: I am using the following preamble to put a frame around verbatim text. How can I have all the text start some 5pt from the frame and how can I get rounded corners, corner=0 does not seem to work \setupcolors[state=start] \setupcolor[xwi

[NTG-context] Verbatim text in a frame

2021-07-30 Thread Jeroen via ntg-context
I am using the following preamble to put a frame around verbatim text. How can I have all the text start some 5pt from the frame and how can I get rounded corners, corner=0 does not seem to work \setupcolors[state=start] \setupcolor[xwi] \definetextbackground [Code] [frame

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 12:23 PM, Floris van Manen wrote: \starttext \starttyping[escape=@]  1   137  26  25 >    1  69  32  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  4   137  26  25 >    1  69  32  5  

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
Aparently all spaces after @etex get reduced to one only. I'd expect that to happen inside @btex and @etex \starttext \starttyping[escape=@] 1 137 26 25 >1 69 32 2 @btex@bgroup@red@bf 137 @egroup@etex 26 25 >1 69 32 3 @btex@bgroup@red@bf 137 @egroup@etex 26 25

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
On 26/04/2021 10:59, Hans Hagen wrote: \starttext \starttyping[escape=/] one two three four /btex/bgroup/red five /egroup/etex six seven eight nine \stoptyping \stoptext That works indeed! Thanks. Are there restriction on what context commands can be given inside the bgroup? e.g. I tried

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 10:25 AM, Floris van Manen wrote: What is the easiest way, if possible, to highlight some sections of verbatim text? given: \starttyping one two three four five six seven eight nine \stoptyping i'd like to color the word 'five' in red, or italic. \starttext \starttyping[escape

[NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
What is the easiest way, if possible, to highlight some sections of verbatim text? given: \starttyping one two three four five six seven eight nine \stoptyping i'd like to color the word 'five' in red, or italic. .Floris

Re: [NTG-context] MKIV - LMTX difference: stripping of leading white space in verbatim text

2020-09-03 Thread Christoph Reller
arttext > > \startLUA > > whatever > > \stopLUA > > \stoptext > > > > In contrast to ConTeXt MKIV, the leading four spaces in front of > > "whatever" are not removed when processing the verbatim text: > > > > MKIV output: >

Re: [NTG-context] MKIV - LMTX difference: stripping of leading white space in verbatim text

2020-09-02 Thread Wolfgang Schuster
processing the verbatim text: MKIV output: whatever LMTX output:     whatever Is there a way to get the old MKIV behavior back? \setuptyping[LUA][strip=yes] Wolfgang ___ If your question is of interest to othe

[NTG-context] MKIV - LMTX difference: stripping of leading white space in verbatim text

2020-09-02 Thread Christoph Reller
Dear List, I am using ConTeXt LMTX 2018.05.19 21:46. Consider the following MWE: \starttext \startLUA whatever \stopLUA \stoptext In contrast to ConTeXt MKIV, the leading four spaces in front of "whatever" are not removed when processing the verbatim text: MKIV output: what

Re: [NTG-context] Verbatim typing and compound breakpoints

2020-09-01 Thread Christoph Reller
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller wrote: > I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE: > > \definetype[typeLUA][option=LUA] > \setbreakpoints[compound] > \starttext > \typeLUA{function(argument)} > \stoptext > > Sadly, it does not compile. > I found that

[NTG-context] Verbatim typing and compound breakpoints

2020-09-01 Thread Christoph Reller
Dear List, I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE: \definetype[typeLUA][option=LUA] \setbreakpoints[compound] \starttext \typeLUA{function(argument)} \stoptext Sadly, it does not compile. The problem seems to be the simultaneous use of compound breakpoints and

Re: [NTG-context] xml verbatim in xml...

2017-08-12 Thread Pablo Rodriguez
On 08/09/2017 08:48 AM, Schmitz Thomas A. wrote: > >> On 8. Aug 2017, at 23:26, Pablo Rodriguez wrote: >> >> Thomas, >> >> \xmlprettyprint seems an easier approach. > > Thank you, I did’n know about \xmlprettyprint. But I want to define > my own prettyprinters, so it’s not

Re: [NTG-context] xml verbatim in xml...

2017-08-09 Thread Pablo Rodriguez
On 08/09/2017 11:03 AM, Hans Hagen wrote: > \startbuffer[test] > > > \starttext > \ConTeXt\ is awesome! > \stoptext > > > > > > ... > > > ... > > > > > \stopbuffer > > \startxmlsetups xml:testsetups >

Re: [NTG-context] xml verbatim in xml...

2017-08-09 Thread Jean-Pierre Delange
Thank you Hans ! This code is ... awesome ! JP Le 09/08/2017 à 11:03, Hans Hagen a écrit : \startbuffer[test] \starttext \ConTeXt\ is awesome! \stoptext ... ... \stopbuffer \startxmlsetups xml:testsetups

Re: [NTG-context] xml verbatim in xml...

2017-08-09 Thread Hans Hagen
to show verbatim xml, and I’m writing in xml. This solution: http://wiki.contextgarden.net/Verbatim_XML mostly works (for Lua and TeX code), except for one little detail: for verbatim xml, it also prints the tag. Example: Thomas, \xmlprettyprint seems an easier approach. And I don’t know whether

Re: [NTG-context] xml verbatim in xml...

2017-08-09 Thread Schmitz Thomas A.
> On 8. Aug 2017, at 23:26, Pablo Rodriguez wrote: > > Thomas, > > \xmlprettyprint seems an easier approach. Thank you, I did’n know about \xmlprettyprint. But I want to define my own prettyprinters, so it’s not suitable for my purpose. And it doesn’t solve the issue I was

Re: [NTG-context] xml verbatim in xml...

2017-08-08 Thread Pablo Rodriguez
On 08/08/2017 11:26 PM, Pablo Rodriguez wrote: > On 08/08/2017 10:46 PM, Schmitz Thomas A. wrote: >> Hi all, >> >> excellent excuse to pester the list with a program: it’s for my >> presentation at the ConTeXt meeting (have YOU registered yet?)… >> So: I want to s

Re: [NTG-context] xml verbatim in xml...

2017-08-08 Thread Pablo Rodriguez
On 08/08/2017 10:46 PM, Schmitz Thomas A. wrote: > Hi all, > > excellent excuse to pester the list with a program: it’s for my > presentation at the ConTeXt meeting (have YOU registered yet?)… > So: I want to show verbatim xml, and I’m writing in xml. This &

[NTG-context] xml verbatim in xml...

2017-08-08 Thread Schmitz Thomas A.
Hi all, excellent excuse to pester the list with a program: it’s for my presentation at the ConTeXt meeting (have YOU registered yet?)… So: I want to show verbatim xml, and I’m writing in xml. This solution: http://wiki.contextgarden.net/Verbatim_XML mostly works (for Lua and TeX code

[NTG-context] Verbatim text.

2015-05-12 Thread John Culleton
The inline string quoted below produces a correct result but also generates an error message: \type{8 1/2 x 11} Is there a better way to handle this situation? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book:

Re: [NTG-context] Verbatim text.

2015-05-12 Thread Hans Hagen
On 5/12/2015 9:11 PM, John Culleton wrote: The inline string quoted below produces a correct result but also generates an error message: \type{8 1/2 x 11} Is there a better way to handle this situation? what error -

Re: [NTG-context] How to Centre Multi-line Verbatim Text

2015-03-14 Thread Wolfgang Schuster
Am 13.03.2015 um 21:32 schrieb Emmanuel Asante emmanuela.asa...@gmail.com: Hello All, I am trying to centre a multi-line verbatim text horizontally on the page but I cannot figure out how to do that. With the code below how can I centre the whole block horizontally on the page

Re: [NTG-context] How to Centre Multi-line Verbatim Text

2015-03-14 Thread Emmanuel Asante
Thank you Wolfgang. On Saturday, March 14, 2015, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 13.03.2015 um 21:32 schrieb Emmanuel Asante emmanuela.asa...@gmail.com javascript:;: Hello All, I am trying to centre a multi-line verbatim text horizontally on the page but I

[NTG-context] How to Centre Multi-line Verbatim Text

2015-03-13 Thread Emmanuel Asante
Hello All, I am trying to centre a multi-line verbatim text horizontally on the page but I cannot figure out how to do that. With the code below how can I centre the whole block horizontally on the page? \setuptyping[TEX] \startTEX RSpec.describe Post, :type = :model do end \stopTEX

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-13 Thread Andreas Schneider
Am 12.02.2015 15:44, schrieb Hans Hagen: so then you have to wikify it (or add it to the t-vim module docu) You are right ofcourse :-) Done: http://wiki.contextgarden.net/Verbatim_XML ___ If your question is of

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-12 Thread Aditya Mahajan
On Thu, 12 Feb 2015, Hans Hagen wrote: On 2/11/2015 12:15 PM, Andreas Schneider wrote: Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-12 Thread Hans Hagen
On 2/11/2015 12:15 PM, Andreas Schneider wrote: Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer { foo } end \stopluacode

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-11 Thread Andreas Schneider
Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer { foo } end \stopluacode \startxmlsetups xml:json \pushcatcodetable

[NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-10 Thread Andreas Schneider
Hello, as a few other topics on this Mailing List already discussed, it's not (easily?) possible to use \starttyping\stoptyping within XML setups. If it was simple verbatim, there would be a few workarounds. However, I want to provide formatted verbatim (i.e. \startJSON \stopJSON, after

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-10 Thread Hans Hagen
On 2/10/2015 5:59 PM, Andreas Schneider wrote: Hello, as a few other topics on this Mailing List already discussed, it's not (easily?) possible to use \starttyping\stoptyping within XML setups. If it was simple verbatim, there would be a few workarounds. However, I want to provide formatted

[NTG-context] How to place a verbatim environment in the text such that the following paragraph is not indented?

2014-05-07 Thread Thomas Möbius
Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? --- minimal example --- \starttext \setupindenting[1.3em] \setupindenting[yes

Re: [NTG-context] How to place a verbatim environment in the text such that the following paragraph is not indented?

2014-05-07 Thread Wolfgang Schuster
Am 07.05.2014 um 12:46 schrieb Thomas Möbius kont...@thomasmoebius.de: Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? Add

Re: [NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Hans Hagen
On 9/17/2013 6:33 PM, Wolfgang Schuster wrote: Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas] \setups[font:fallback:mono] \definefontsynonym [Mono] [file:consolas] [features=none]

Re: [NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Wolfgang Schuster
Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl: On 9/17/2013 6:33 PM, Wolfgang Schuster wrote: Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas] \setups[font:fallback:mono] \definefontsynonym [Mono]

Re: [NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Hans Hagen
On 9/18/2013 4:11 PM, Wolfgang Schuster wrote: Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl: On 9/17/2013 6:33 PM, Wolfgang Schuster wrote: Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas]

[NTG-context] Wrong spaces in verbatim mode with Consolas

2013-09-17 Thread Wolfgang Schuster
Hi, the Consolas font produces proportional spaces even with “features=none”. \starttypescript [mono] [consolas] \setups[font:fallback:mono] \definefontsynonym [Mono] [file:consolas] [features=none] \definefontsynonym [MonoBold] [file:consolasbold]

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread john Culleton
On Tue, 30 Jul 2013 23:03:32 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread Wolfgang Schuster
the content to the given width. You can get the same effect with the \scale command, another way is to change the font size for the verbatim block with \typefile[bodyfont=small]{filename} or \typefile[bodyfont=8pt]{filename}. Wolfgang

[NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread john Culleton
Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. \startbuffer[ex1] \typefile[]{example1.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\externalfigure[ex1.buffer][width

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. Hi, this works here: --8---cut here---start-8--- \starttext \startbuffer[ex1

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Wolfgang Schuster
Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: On Tue, Jul 30 2013, john Culleton wrote: Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. Hi, this works here: --8

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
On Tue, Jul 30 2013, Wolfgang Schuster wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer Why do you use a buffer? Copy + paste ... ;) (brain was somewhere else... ;) -- Peter

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
Am 26.11.2012 um 21:42 schrieb Erik Margraf erik.marg...@gmail.com: Dear List, is there a Context function/macro which enables me to set a box with verbatim file input. I.e. something similar to : \setbox\scratchbox\hbox{\verbatimfileinput{FileName}} You have to use a \vbox because

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
Am 26.11.2012 um 23:06 schrieb Erik Margraf erik.marg...@gmail.com: I thought a box would be the best to use it in connection with the FunnyFrame of the Metafun manual page 137. In particular I wanted to set the the Frametitle with the contents of a file. (The actual contents of the file

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-28 Thread Hans Hagen
On 27-9-2012 22:49, Alan Braslau wrote: Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. \setupbodyfont[dejavu] \starttext

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-28 Thread Alan BRASLAU
On Fri, 28 Sep 2012 10:43:48 +0200 Hans Hagen pra...@wxs.nl wrote: On 27-9-2012 22:49, Alan Braslau wrote: Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim

[NTG-context] verbatim text: \type, \tex and co.

2012-09-27 Thread Alan Braslau
Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. Alan

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-27 Thread Aditya Mahajan
Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Untested: \type{...} should work. (Definitely did work a couple of months ago). Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. CM

[NTG-context] xml--verbatim in error?

2012-03-21 Thread Meer, H. van der
I found something that might be an error in the current xml-processing. In the following minimal example een Undefined control sequence error occurs for the \xmldisplayverbatim and \xmlinlineverbatims. The \xmlverbatim doesn't. \startxmldisplayverbatim ...\doinitializeverbatim

Re: [NTG-context] processing style inside verbatim in XML

2011-10-24 Thread Hans Hagen
On 21-10-2011 22:18, Mojca Miklavec wrote: Hello, Is there any simple way to typeset the following example properly in ConTeXt? I have an example of text that has to obey lines and spaces, but I would like to apply some color to make it more readable. The attachment contains an example of HTML

[NTG-context] processing style inside verbatim in XML

2011-10-21 Thread Mojca Miklavec
Hello, Is there any simple way to typeset the following example properly in ConTeXt? I have an example of text that has to obey lines and spaces, but I would like to apply some color to make it more readable. The attachment contains an example of HTML which displays fine in my browser, and it

Re: [NTG-context] Exporting verbatim text

2011-10-15 Thread Hans Hagen
On 15-10-2011 05:29, Aditya Mahajan wrote: Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{ System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello

Re: [NTG-context] Exporting verbatim text

2011-10-15 Thread Aditya Mahajan
On Sat, 15 Oct 2011, Hans Hagen wrote: On 15-10-2011 05:29, Aditya Mahajan wrote: Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{

[NTG-context] Exporting verbatim text

2011-10-14 Thread Aditya Mahajan
Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{ System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello World}\SYN[javaParen]{)} ; \} ~~~

[NTG-context] Blank lines inside verbatim environment

2011-09-28 Thread Jaroslav Hajtmar
Hello ConTEXist. I know that this probably is no reason, but can be in an environment \starttyping ... \stoptyping turn on, which will each blank line in the statement reflect? I want put in the presentation in this environment, a direct numbers of blank lines. The larger number of empty

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Felix Ingram
-- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Wolfgang Schuster
Am 22.09.2011 um 12:54 schrieb Felix Ingram: -- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am

Re: [NTG-context] Verbatim in framed text

2011-09-21 Thread Wolfgang Schuster
Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth

[NTG-context] Verbatim in framed text

2011-09-20 Thread Felix Ingram
Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth] \startframedtext[left][frame=off, width=.6\textwidth

[NTG-context] Typesetting in verbatim

2011-09-08 Thread Thomas Friedrich
Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be able to give me a hint. My code looks as follows: \definetyping [Haskell] [ option=commands, before={\startframedtext[width=\makeupwidth,

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Aditya Mahajan
On Wed, 7 Sep 2011, Thomas Friedrich wrote: Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be able to give me a hint. My code looks as follows: \definetyping [Haskell] [ option=commands,

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Wolfgang Schuster
Am 08.09.2011 um 09:55 schrieb Aditya Mahajan: On Wed, 7 Sep 2011, Thomas Friedrich wrote: Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be able to give me a hint. My code looks as follows: \definetyping

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread Thomas Friedrich
Am Donnerstag, den 08.09.2011, 09:59 +0200 schrieb Wolfgang Schuster: Am 08.09.2011 um 09:55 schrieb Aditya Mahajan: On Wed, 7 Sep 2011, Thomas Friedrich wrote: Hi, I am having problems typing when typesetting code within a \definetyping environment. I hope someone might be

Re: [NTG-context] Typesetting in verbatim

2011-09-08 Thread luigi scarso
On Thu, Sep 8, 2011 at 10:39 AM, Thomas Friedrich i...@suud.de wrote: Question: Is there a way to replace the and strings in the typesetting environment by something else?  Or another work around? maybe \startHaskell foo = bar =/BTEX/ETEX print foo = bar =/BTEX$$/ETEX print \stopHaskell --

  1   2   3   4   >